package com.leather.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.*;

/**
 * @author kevin
 */
@Data
@TableName("job")
public class Job implements Serializable {

    private static final long serialVersionUID = 1552291038433L;


    /**
     * 主键
     * 自增的id
     * isNullAble:0
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 工作的名称
     * isNullAble:0
     */
    private String jobName;

    /**
     * 工作描述
     * isNullAble:0
     */
    private String jobDesc;


    /**
     * 结束时间
     * isNullAble:0
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 发布时间
     * isNullAble:0
     */
    private Date createTime;

    /**
     * 店铺图片路径
     * isNullAble:1
     */
    private String type;

    private Double price;


    /**
     * 最大人数
     * isNullAble:0,defaultVal:0
     */
    private Integer maxPeople;


    /**
     * 删除标记
     * isNullAble:1,defaultVal:0
     */
    private Integer flag;


    private String address;

    private String message;

}
